package org.jypj.dev.model;

import com.google.gson.Gson;

import java.util.HashMap;
import java.util.Map;

/**
 * @author chenyu
 */
public class EmergeBook implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键ID
    private String name; //目录名称
    private String parentId; //上级目录的id
    private String parentName;//上级名称
    private String trainType;//所属车型
    private int isCatalog; //功能或者目录（0表示目录，1表示功能）
    private String contentText; //纯文本内容
    private String contentHtml; //html内容
    private String createTime; //创建时间
    private String sortOrder; //排序


    public EmergeBook() {
    }

    public EmergeBook(String id, String name, String parentId) {
        this.id = id;
        this.name = name;
        this.parentId = parentId;
    }

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getParentId() {
        return this.parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId;
    }

    public int getIsCatalog() {
        return this.isCatalog;
    }

    public void setIsCatalog(int isCatalog) {
        this.isCatalog = isCatalog;
    }

    public String getContentText() {
        return this.contentText;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    public String getContentHtml() {
        return this.contentHtml;
    }

    public void setContentHtml(String contentHtml) {
        this.contentHtml = contentHtml;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getSortOrder() {
        return this.sortOrder;
    }

    public void setSortOrder(String sortOrder) {
        this.sortOrder = sortOrder;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getTrainType() {
        return trainType;
    }

    public void setTrainType(String trainType) {
        this.trainType = trainType;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}